'\"macro stdmacro
.\"
.\" Copyright (c) 2016 Red Hat.
.\" Copyright (c) 2009 Ken McDonell.  All Rights Reserved.
.\"
.\" This program is free software; you can redistribute it and/or modify it
.\" under the terms of the GNU General Public License as published by the
.\" Free Software Foundation; either version 2 of the License, or (at your
.\" option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful, but
.\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
.\" or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
.\" for more details.
.\"
.TH PMDERIVEDERRSTR 3 "" "Performance Co-Pilot"
.SH NAME
\f3pmDerivedErrStr\f1 \- return error message from failure to parse derived metric definition
.SH "C SYNOPSIS"
.ft 3
.ad l
.hy 0
#include <pcp/pmapi.h>
.sp
char *pmDerivedErrStr(void);
.sp
cc ... \-lpcp
.hy
.ad
.ft 1
.SH DESCRIPTION
When
.BR pmRegisterDerived (3)
is called to add a new derived metric definition and an error occurs,
.B pmDerivedErrStr
may be called to return the associated error message.
.PP
The
.B pmRegisterDerivedMetric
interface provides a convenience wrapper around both
.B pmRegisterDerived
and
.BR pmDerivedErrStr .
.SH SEE ALSO
.BR PCPIntro (1),
.BR PMAPI (3)
and
.BR pmRegisterDerived (3).
